class ApplicationController < ActionController::Base
  protect_from_forgery

  # 后台权限检测
  def checkAdmin
  	if(session[:adminer] == nil)
      redirect_to :action => 'login', :controller =>'adminers', notice: 'unpassed'
      return false
    end
    true
  end

end